package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"medical/api/internal/config"
	"medical/medicalrpc/medicalrpcclient"
)

type ServiceContext struct {
	Config     config.Config
	MedicalRpc medicalrpcclient.Medicalrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:     c,
		MedicalRpc: medicalrpcclient.NewMedicalrpc(zrpc.MustNewClient(c.MedicalRpc)),
	}
}
